package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {

	router := gin.Default()
	router.GET("moreJson", moreJson)
	router.Run(":8082")
}

type message struct {
	Name string `json:"user"`
	Message string
	Number int
}

func moreJson(c *gin.Context) {
	var msg message
	msg.Name = "f23232f2f2"
	msg.Number = 2

	c.JSON(http.StatusOK, msg)
}
